package ah.szxy.service.impl;

import ah.szxy.EchoService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

/**
 * 业务实现
 *
 * @author caohaiyang
 * @create 2020-09-18 下午 04:49
 */
@Service  //注意这里导入的是Dubbo下的包而不是Spring下的包
public class EchoServiceImpl implements EchoService {

    @Value("${dubbo.protocol.port}")
    private String port;


    @Override
    public String echo(String message) {
        return "[Echo]:"+message+ ", 我是端口:"+port;
    }
}